﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using ThumpThumpBus.Models.Domain;
using ThumpThumpBus.Models.Repository;
using ThumpThumpBus.Models.ViewModels;

namespace ThumpThumpBus.Controllers.Api
{
    public class PeopleController : ApiController
    {
        private readonly PersonRepository _personRepository = new PersonRepository();

        public IEnumerable<Person> Get()
        {
            var people = _personRepository.GetAllPeople();
            return people;
        }

    }
}
